<!DOCTYPE html>
<html lang="en">

<head>
          <meta charset="UTF-8">
          <meta name="viewport" content="width=device-width, initial-scale=1.0">
          <title>Document</title>
</head>

<body>
          <div style="background-color:#3399FF">块元素1</div>
          <div style="background-color:#99DDEE">块元素1</div>
          <span style="background-color:#FFCCFF">行内元素1</span>
          <span style="background-color:#993399">行内元素2</span>
</body>

</html>